﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GatherWebLib.Model
{
    /// <summary>
    /// 页面内容截取参数
    /// </summary>
    public class cWebpageCutFlag_m
    {
        private int m_id;
        public int ID
        {
            get { return m_id; }
            set { m_id = value; }
        }

        private int _taskid;
        public int TaskID
        {
            set { _taskid = value; }
            get { return _taskid; }
        }
        private string m_Title;
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get { return m_Title; }
            set { m_Title = value; }
        }

        private string m_StartPos;
        /// <summary>
        /// 起止位置
        /// </summary>
        public string StartPos
        {
            get { return m_StartPos; }
            set { m_StartPos = value; }
        }

        private string m_EndPos;
        /// <summary>
        /// 结束位置
        /// </summary>
        public string EndPos
        {
            get { return m_EndPos; }
            set { m_EndPos = value; }
        }

        //private bool m_loopFlag;
        //public bool loopFlag
        //{
        //    get { return m_loopFlag; }
        //    set { m_loopFlag = value; }
        //}

        //private string m_Content;
        //public string Content
        //{
        //    get { return m_Content; }
        //    set { m_Content = value; }
        //}

        //网页采集数据的限定标识
        private GatherWebLib.cGlobalParas.LimitSign m_LimitSign;
        /// <summary>
        /// 抓取限制条件
        /// </summary>
        public GatherWebLib.cGlobalParas.LimitSign LimitSign
        {
            get { return m_LimitSign; }
            set { m_LimitSign = value; }
        }

        private string m_RegionExpression;
        /// <summary>
        /// 自定义抓取限定条件
        /// </summary>
        public string RegionExpression
        {
            get { return m_RegionExpression; }
            set { m_RegionExpression = value; }
        }

        private GatherWebLib.cGlobalParas.ExportLimit m_ExportLimit; 
        /// <summary>
        /// 数据输出加工
        /// </summary>
        public GatherWebLib.cGlobalParas.ExportLimit ExportLimit
        {
            get { return m_ExportLimit; }
            set { m_ExportLimit = value; }
        }

        private string m_ExportExpression;
        public string ExportExpression
        {
            get { return m_ExportExpression; }
            set { m_ExportExpression = value; }
        }

        //采集数据的类型
        private GatherWebLib.cGlobalParas.DataType m_DataType;
        /// <summary>
        /// 采集数据类型
        /// </summary>
        public GatherWebLib.cGlobalParas.DataType DataType
        {
            get { return m_DataType; }
            set { m_DataType = value; }
        }
    }
}
